/* 基础样式 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.main-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex; /* 启用 Flexbox 布局 */
    gap: 2rem; /* 设置子元素之间的间距 */
    padding: 2rem;
    /*background-color: lightgreen;*/
}

.left-column {
    flex : 3 ;  /* 左列初始宽度为父容器的 50% */
    overflow: auto; /* 防止内容溢出影响右列 */
    /*background-color: lightblue; !* 为了演示方便添加背景色 *!*/
}

.right-column {
    flex : 1 ;
    /*flex-basis: 50%; !* 右列初始宽度为父容器的 50% *!*/
    overflow: auto; /* 防止内容溢出影响左列 */
    /*background-color: lightgreen; !* 为了演示方便添加背景色 *!*/
}


.blog-list {
    /*background-color: lightcoral;*/

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 2fr));
    gap: 2rem;
    padding: 1rem;
    flex: 1;
}



/* 博客列表样式 */
.blog-card {
    background: whitesmoke;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* 修正过渡时间的语法错误 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /*overflow: hidden;*/

}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.blog-content {
    padding: 1.5rem;
}



.left-column {
    width: 50%;
}


/* 响应式调整 */
@media (max-width: 768px) {
    .left-column {
        /* 小屏幕时让 left-column 变为垂直排列 */
        flex-direction: column;
    }

    .blog-list,
    .additional-blog-column {
        grid-template-columns: 1fr;
    }

    .blog-image {
        height: 180px;
    }

    .multi-column-content {
        flex-direction: column;
    }

    .left-content,
    .right-content {
        width: 100%;
    }
}

/* 新增样式 */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 标签样式 */
.tag-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    background: #f0f2f5;
    transition: all 0.2s ease;
}

.post-tag.a { background: #ffd8d8; color: #c92c2c; }
.post-tag.b { background: #d8e3ff; color: #2c5ec9; }
.post-tag.c { background: #d8ffe2; color: #2c9e4c; }

/* 增强悬停效果 */
.blog-card:hover .blog-title {
    color: #4299e1;
}

.blog-card:hover .post-tag {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 日期样式 */
.post-date {
    font-size: 0.8rem;
    color: #718096;
}

 /* 内容区域调整 */
.blog-content {
    padding : 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 右侧内容样式 */
.right-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.right-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

/* 天气卡片样式 */
.weather-card {
    background: #f8f9fa;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-icon img {
    width: 50px;
    height: 50px;
}

.weather-details {
    flex-grow: 1;
}

/* 置顶博客样式 */
.top-blog-card {
    background: #fff;
}

.top-blog-list {
    list-style: none;
    padding: 0;
}

.top-blog-item {
    margin-bottom: 1rem;
}

.top-blog-item:last-child {
    margin-bottom: 0;
}

.top-blog-item a {
    display: block;
}

.top-item-blog h4 {
    margin-top: 0;
}

/* 常用样式链接 */
.links-card {
    background: #fff;
}

.link-list {
    list-style: none;
    padding: 0;
}

.link-list li {
    margin-bottom: 1rem;
}

.link-list li:last-child {
    margin-bottom: 0;
}

.link-icon {
    margin-right: 1rem;
}

.link-icon i {
    font-size: 1.5rem;
}